ARCH = x86
CROSS_COMPILE = 

KERNEL_PATH = /home/lxz/3rdpart/linux/linux-4.15.18

obj-m += helloworld.o

default:
	make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_PATH) M=$(PWD) modules

clean:
	make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_PATH) M=$(PWD) clean